<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/pages/common/header.jsp"%>
<html>
	<head>
		<title>Users Profile</title>	
	</head>
	<body class="mainbody">
		<c:set var="list_users" value="${requestScope.list_users}"/>
		<div class="mainContainer">
	    	<section class="bodyContainer">
				<div class="productReport">
		        	<h2 class="titleTxtBig">User Details</h2>
		            <p class="hrlineBr"></p>
	
					<div class="productDtls">
				  		<p class="spacerTopTen"></p>
					    <p class="spacerTopTen"></p>
					   	<div class="divclear">            
					      	<table class="reportTable" width="100%" border="0" cellspacing="0" cellpadding="0">
					      		<thead>
					              	<tr>
					                      <th>Sr. No.</th>
					                      <th>User Name</th>
					                      <th>Role</th>
					                      <th>Password Change</th>
					                      <th>Delete</th>
					               	</tr>
					             	</thead>
					              <tbody>
					              	<c:if test="${list_users ne null}">
										<c:forEach var="users" items="${list_users}" varStatus="counter">
											<tr>
											    <td><c:out value="${counter.count}"/></td>
												<td><c:out value="${users.fName}"/></td>
												<td><a href="${context}/pages/jsp/changeRole.jsp?userId=${users.userId}&fName=${users.fName}">Role</a></td>
												<td><a href="${context}/pages/jsp/changePassword.jsp?userId=${users.userId}&fName=${users.fName}">Change</a></td>
												<td>
													<a onclick="return confirmation();" href="${context}/profiles?ACTION=DU&UI=${users.userId}"><img src="${imageContext}/delete.gif"></a>
												</td>
											</tr>
										</c:forEach>
									</c:if>
					          	</tbody>
					      	</table>
					 		</div>
					  	<p class="spacerTopTen"></p>
					                       
					</div>               
				</div>
	 		</section>
		</div>
		<!--main container-->
		<p class="spacerTopTen"></p>
		<p class="spacerTopTen"></p>
		<jsp:include page="/pages/common/footer.jsp" />
	</body>
</html>
